<?php
class Recent_searches extends Controller
{

    function Recent_searches(){

        parent::Controller();

        $this->load->model('searchmodel');   

    }

    public function index($id = FALSE){

        $data['search_items'] = $this->searchmodel->get_search_history();

        if ($data['search_items'] !== FALSE) $this->load->view("recent_searches_view", $data);       
       
    }    
  
}
?>                                                                                                 
